package com.example.dragandview.diywidget;

import android.content.Context;
import android.util.AttributeSet;
import android.widget.Button;

import com.example.dragandview.R;

public class SubmitButton extends Button {
    public SubmitButton(Context context, AttributeSet attrs) {
        super(context, attrs);
        init();
    }

    private void init() {

        setBackgroundResource(R.drawable.btn_submit);

        setText("提交");

        setTextSize(18);

        setTextColor(0xffffffff);

    }
}
